home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
More Anime Pin-Up Beauties
/
More Anime Pin-Up Beauties.iso
/
pc
/
east
/
gpx05.dir
/
00199_Script_199
< prev
next >
Wrap
Text File
|
1998-06-22
|
2KB
|
113 lines
-- For BOX
-- ++++++++++++++++++++++++++++++++ BGM of BOX
on aiffBOX
global gBOXnum
if (gBOXnum = 2) or (gBOXnum = 4) or (gBOXnum = 6) then
aiffSound(4)
else
aiffSound(3)
end if
-- ++++++++++++++++++++++++++++++++ initialize of BOX
on initBOX
global gBOXnum
global gPathItem
cursor 4
aiffBOX()
chgScene("PL-000", the frame + 1, gPathItem & "BG" & string(gBOXnum) & "00")
puppetSprite 20, TRUE
set the visibility of sprite 20 to FALSE
upDateStage
cursor -1
-- ++++++++++++++++++++++++++++++++ termination of BOX
on termBOX mode
global gBOXnum
if (gBOXnum = mode) then
return
exit
end if
cursor 4
erasePictBOX()
if (mode = 0) then
go to frame "000"
exit
end if
put mode into gBOXnum
go to frame "BOX"
-- ++++++++++++++++++++++++++++++++ compute number of box mat (4 * 7)
on numOfBoxMat
put mouseH() into H
put mouseV() into V
put the left of sprite clickOn() into L
put the top of sprite clickOn() into T
put (H - L) / 72 into hBlock
put (V - T) / 64 into vBlock
put (H - L) / 8 into hNG
put (V - T) / 8 into vNG
if hBlock > 3 then
put 3 into hBlock
end if
if hBlock < 0 then
put 0 into hBlock
end if
if vBlock > 6 then
put 6 into vBlock
end if
if vBlock < 0 then
put 0 into vBlock
end if
if (hNG mod 9) = 8 then
return (0)
end if
if (vNG mod 8) = 7 then
return(0)
end if
put ((vBlock * 4) + hBlock) + 1 into vMat
return(vMat)
-- ++++++++++++++++++++++++++++++++ display Picture in BOX
on pictBOX
global gBOXnum
global gPathLine
global gpathPict
put numOfBoxMat() into vNum
if vNum = 0 then
exit
end if
put "PIC.LIST" & string(gBOXnum) into vLIST
put item 2 of line vNum of field vLIST into vPorL
if vPorL = "X" then
exit
end if
put value(item 4 of line vNum of field vLIST) into vTyp
if vPorL = "P" then
put gPathPict & "P" & (item 3 of line vNum of field vLIST) into vName
else
put gPathLine & "L" & (item 3 of line vNum of field vLIST) into vName
end if
dispPictBOX(vName, vTyp)